﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kopytko.GameBase
{
    public abstract class GameBase : IGame
    {
        #region IGame Members

        public abstract string Name {get;}

        public abstract Version Version {get;}

        public event EventHandler GameStarted;

        public event EventHandler GameEnded;

        public abstract void Run(System.Windows.Controls.ContentControl parent, PlayerType playerType);

        #endregion

        protected void OnGameStarted(EventArgs e)
        {
            if (this.GameStarted != null)
                GameStarted(this, e);
        }

        protected void OnGameEnded(EventArgs e)
        {
            if (this.GameEnded != null)
                GameEnded(this, e);
        }

    }
}
